package pl.ivmx.cinema.entities;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

@Entity
@NamedQuery(
        name="actor.findActorsWithId",
        query="SELECT a FROM Actor a WHERE a.id = :id"
)
public class Actor implements Serializable {
	@Id
	private long id;

	private String name;

	private String bio;

	private String photourl;

	private static final long serialVersionUID = 1L;

	public Actor() {
		super();
	}

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBio() {
		return this.bio;
	}

	public void setBio(String bio) {
		this.bio = bio;
	}

	public String getPhotourl() {
		return this.photourl;
	}

	public void setPhotourl(String photourl) {
		this.photourl = photourl;
	}

}
